<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    html {
        height: 100%;
    }

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        background-image: linear-gradient(200deg, #fda09b, #918ef9);
    }

    .container {
        width: 500px;
        height: 300px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card {
        width: 430px;
        height: 100px;
        padding: 0 20px;
        border-radius: 100px 20px 20px 100px;
        background-color: #fff;
        position: absolute;
        display: flex;
        opacity: 0;
        animation: animate 10s linear infinite;
        animation-delay: calc(2s * var(--d));
    }

    .card .img {
        width: 90px;
        height: 90px;
        position: absolute;
        left: 0;
        top: 0;
        background-color: #fff;
        padding: 5px;
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .card .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .card .content {
        flex: 8;
        display: flex;
        align-items: center;
    }

    .card .detail {
        margin-left: 100px;
    }

    .card .detail span {
        display: block;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .card a {
        flex: 1;
        font-size: 14px;
        text-decoration: none;
        line-height: 90px;
        margin-left: 40px;
        padding: 7px 18px;
        border-radius: 25px;
    }

    @keyframes animate {
        0% {
            opacity: 0;
            transform: translateY(100%) scale(0.5);
        }

        5%,
        20% {
            opacity: 0.4;
            transform: translateY(100%) scale(0.7);
        }

        25%,
        40% {
            opacity: 1;
            transform: translateY(0%) scale(1);
        }

        45%,
        60% {
            opacity: 0.4;
            transform: translateY(-100%) scale(0.7);
        }

        65%,
        100% {
            opacity: 0;
            transform: translateY(-100%) scale(0.5);
        }
    }
</style>

<body>
    <div class="container">
        <div class="card" style="--d:-1">
            <div class="content">
                <div class="img">
                    <img src="./img/1.jpg">
                </div>
                <div class="detail">
                    <span>阿泽</span>
                    <p>少小离家老大回</p>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:0">
            <div class="content">
                <div class="img">
                    <img src="./img/2.jpg">
                </div>
                <div class="detail">
                    <span>入眼</span>
                    <p>春江潮水连海平，海上明月共潮生</p>
                    </p>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:1">
            <div class="content">
                <div class="img">
                    <img src="./img/3.jpg">
                </div>
                <div class="detail">
                    <span>香菇</span>
                    <p>香菇终结者</p>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:2">
            <div class="content">
                <div class="img">
                    <img src="./img/4.jpg">
                </div>
                <div class="detail">
                    <span>姜维</span>
                    <p>我有一计，可复兴蜀汉</p>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
        <div class="card" style="--d:3">
            <div class="content">
                <div class="img">
                    <img src="./img/5.jpg">
                </div>
                <div class="detail">
                    <span>刘禅</span>
                    <p>对不起，相父的出师表上没你</p>
                </div>
            </div>
            <a href="#">关注</a>
        </div>
    </div>
    <div class="reigister"></div>
</body>

</html>